﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX;

namespace BoatNGoat.Logic.Map
{
    public struct MapPosition
    {
        private float _x;
        private float _y;

        public float X
        {
            get { return _x; }
            set { _x = value; }
        }
        public float Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public MapPosition(float x, float y)
        {
            _x = x;
            _y = y;
        }

        public static explicit operator MapPosition(Vector2 v)
        {
            return new MapPosition { X = v.X, Y = v.Y };
        }

        public static explicit operator Vector2(MapPosition p)
        {
            return new Vector2(p.X, p.Y);
        }
    }
}
